package com.ruoyi.user.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.user.mapper.CheFeedbackMapper;
import com.ruoyi.user.domain.CheFeedback;
import com.ruoyi.user.service.ICheFeedbackService;

/**
 * 意见反馈Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-07
 */
@Service
public class CheFeedbackServiceImpl implements ICheFeedbackService 
{
    @Autowired
    private CheFeedbackMapper cheFeedbackMapper;

    /**
     * 查询意见反馈
     * 
     * @param id 意见反馈主键
     * @return 意见反馈
     */
    @Override
    public CheFeedback selectCheFeedbackById(Long id)
    {
        return cheFeedbackMapper.selectCheFeedbackById(id);
    }

    /**
     * 查询意见反馈列表
     * 
     * @param cheFeedback 意见反馈
     * @return 意见反馈
     */
    @Override
    public List<CheFeedback> selectCheFeedbackList(CheFeedback cheFeedback)
    {
        return cheFeedbackMapper.selectCheFeedbackList(cheFeedback);
    }

    /**
     * 新增意见反馈
     * 
     * @param cheFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int insertCheFeedback(CheFeedback cheFeedback)
    {
        return cheFeedbackMapper.insertCheFeedback(cheFeedback);
    }

    /**
     * 修改意见反馈
     * 
     * @param cheFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int updateCheFeedback(CheFeedback cheFeedback)
    {
        return cheFeedbackMapper.updateCheFeedback(cheFeedback);
    }

    /**
     * 批量删除意见反馈
     * 
     * @param ids 需要删除的意见反馈主键
     * @return 结果
     */
    @Override
    public int deleteCheFeedbackByIds(Long[] ids)
    {
        return cheFeedbackMapper.deleteCheFeedbackByIds(ids);
    }

    /**
     * 删除意见反馈信息
     * 
     * @param id 意见反馈主键
     * @return 结果
     */
    @Override
    public int deleteCheFeedbackById(Long id)
    {
        return cheFeedbackMapper.deleteCheFeedbackById(id);
    }
}
